<div id="search"> 
  <g:form url='[controller: "post", action: "search"]' 
          id="postSearchForm" 
          name="postSearchForm" 
          method="get"> 
    <g:textField name="q" value="${params.q}" /> 
    <input type="submit" value="Find a post" /> 
  </g:form> 
</div>